<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShareUrlTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('share_url', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('分享标题');
            $table->string('share_url')->comment('分享链接');
            $table->string('url_img')->comment('链接图片');
            $table->string('remarks')->nullable()->comment('链接备注');
            $table->tinyInteger('status')->default(1)->comment('访问状态，1正常访问，2停止访问');
            $table->string('resource_no')->comment('资源编号');
            $table->integer('entrance_id')->comment('入口模板id');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('share_url');
    }
}
